package com.hopechart.micro.common.constant;

/**
 * <p>
 * <br/>常量部分， 根据实际业务需要定义
 * </p>
 *
 * @author daijiang@hopechart.com
 * @version V1.0.0
 * @date 2017-10-30 08:56:52
 * @copyright 杭州鸿泉数字设备有限公司
 */
public class Constant {
    public static final String UPLOAD_PREFIX = "upload";

    public static final String PARAM_DIGEST = "digest";
    public static final String PARAM_USERNAME = "username";

    //授权key
    public static final String AUTH_KEY = "authKey";

    //sessoinid
    public static final String SESSION_ID = "sessionId";

    //登录用户对象
    public static final String SESSION_USER_KEY = "user";

    //安全密匙
    public static String SECRET_KEY = "#rSgRKVunlLUMopFWbEevOy9";
    /**
     * 加密算法
     */
    public static final String SHA1 = "SHA-1";
    public static final String MD5 = "MD5";

    /**
     * 散列算法迭代次数
     */
    public static int SHA_ITERATION_NUM = 1024;

    /**
     * 盐大小
     */
    public static int SALT_SIZE = 8;

    /**
     * 默认提示消息
     */
    public static final String DEFAULT_MESSAGE = "操作成功";

    /**
     * 默认页
     */
    public static final int DEFAULT_PAGE = 1;

    /**
     * 默认页
     */
    public static final int DEFAULT_PAGE_ROWS = 20;


}
